package com.smart.manager.work.entities.body;

import com.smart.common.entities.core.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 *
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RTaskKind {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RPigTaskKind1")
    public static class SearchBody extends BaseSearch {

        @ApiModelProperty("任务编号")
        private String code;

        @ApiModelProperty("任务标题")
        private String title;

        @ApiModelProperty("任务内容")
        private String content;


    }


    @Data
    @ApiModel("RPigTaskKind2")
    public static class EditBody  implements Serializable {


        @ApiModelProperty("任务编号")
        @NotBlank(message = " 任务编号  不能为空")
        private String code;

        @ApiModelProperty("任务标题")
        @NotBlank(message = " 任务标题  不能为空")
        private String title;

        @ApiModelProperty("任务内容")
        @NotBlank(message = " 任务内容  不能为空")
        private String content;



    }


}
